* {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

html,
body {
    width: 100%;
}

/* 导航栏 */
#nav {
    width: 100%;
    height: 46px;
    line-height: 46px;
    background-color: rgb(67, 36, 12);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 998;
}

#nav ul {
    height: 46px;
}

#nav ul li {
    width: 220px;
    float: left;
    cursor: pointer;
    color: #fff;
    transition: all .3s;background-color: #fee44e;
}

#nav ul li:hover {
    
    color: #000;
}

#nav ul .active {
    background-color: #fee44e;
    color: #000;
}
#product .container {
  width: 1200px;
  margin: 0 auto;
}

#product .container .wraper {
  width: 900px;
  height: 500px;
}

#product .container .wraper .lef {
  float: left;
  width: 400px;
  height: 500px;
}

#product .container .wraper .lef .show-box {
  width: 400px;
  height: 400px;
  overflow: hidden;
  position: relative;
}

#product .container .wraper .lef .show-box img {
  width: 100%;
  height: 100%;
}

#product .container .wraper .lef .show-box .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background-color: #fee44e;
  opacity: calc(0.3);
  pointer-events: none;
}

#product .container .wraper .lef ul {
  width: 400px;
  height: 100px;
  display: flex;
  justify-content: space-between;
}

#product .container .wraper .lef ul li {
  width: 98px;
  height: 98px;
}

#product .container .wraper .lef ul li img {
  width: 100%;
  height: 100%;
}

#product .container .wraper .lef ul .active {
  border: 1px solid red;
}

#product .container .wraper .rig {
  width: 500px;
  height: 500px;
  float: left;
  overflow: hidden;
  position: relative;
}

#product .container .wraper .rig img {
  position: absolute;
  top: 0;
  left: 0;
}

#product .container .wraper .rig div {
  width: 370px;
  height: 300px;
  padding: 0 15px;
}

#product .container .wraper .rig div .productName {
  font-size: 22px;
  line-height: 35px;
  margin: 20px 0;
}

#product .container .wraper .rig div .oldPrice {
  text-decoration: line-through;
  height: 30px;
}

#product .container .wraper .rig div .newPrice {
  color: #fa585a;
}

#product .container .wraper .rig div .newPrice span {
  font-size: 30px;
  margin: 15px 0;
}

#product .container .wraper .rig div .goBuy {
  float: right;
  height: 50px;
}

#product .container .wraper .rig div .goBuy span {
  float: right;
  display: block;
  width: 100px;
  height: 50px;
  line-height: 50px;
  border-radius: 5px;
  padding-left: 10px;
  background-color: #fa585a;
}

#product .container .wraper .rig div .goBuy span a {
  text-decoration: none;
  font-size: 20px;
  color: #ffffff;
}

#product .container .wraper .rig div .addCart {
  float: right;
  border-radius: 5px;
  cursor: pointer;
  width: 80px;
  height: 50px;
  line-height: 50px;
  background-color: darkcyan;
}
